package com.ecoolex.hotel.saas.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.hotel.saas.entity.Store;
import com.ecoolex.hotel.saas.entity.StoreExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface StoreMapper {
    long countByExample(StoreExample example);

    int deleteByExample(StoreExample example);

    int deleteByPrimaryKey(Integer storeId);

    int insert(Store record);

    int insertSelective(@Param("record") Store record, @Param("selective") Store.Column ... selective);

    Store selectOneByExample(StoreExample example);

    List<Store> selectByExample(StoreExample example);

    Store selectByPrimaryKey(Integer storeId);

    Store selectByPrimaryKeyWithLogicalDelete(@Param("storeId") Integer storeId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") Store record, @Param("example") StoreExample example, @Param("selective") Store.Column ... selective);

    int updateByExample(@Param("record") Store record, @Param("example") StoreExample example);

    int updateByPrimaryKeySelective(@Param("record") Store record, @Param("selective") Store.Column ... selective);

    int updateByPrimaryKey(Store record);

    int batchInsert(@Param("list") List<Store> list);

    int batchInsertSelective(@Param("list") List<Store> list, @Param("selective") Store.Column ... selective);

    int logicalDeleteByExample(@Param("example") StoreExample example);

    int logicalDeleteByPrimaryKey(Integer storeId);
}